package com.csust.automaticteach.service;

import com.csust.automaticteach.model.entity.MindMap;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import reactor.core.publisher.Flux;

/**
* @author 钰玟
* @description 针对表【t_mind_map(思维导图表)】的数据库操作Service
* @createDate 2025-08-12 14:56:18
*/
public interface MindMapService extends IService<MindMap> {

    /**
     * 生成思维导图文本
     * @param prompt 用户提示词
     * @param chatId 会话ID
     * @param request 请求
     * @return 生成的思维导图文本
     */
    Flux<String> genMindMapTextByZhipu(String prompt, String chatId, HttpServletRequest request);
    /**
     * 生成思维导图文本
     * @param prompt 用户提示词
     * @param chatId 会话ID
     * @param request 请求
     * @return 生成的思维导图文本
     */
    Flux<String> genMindMapTextBySpark(String prompt, String chatId, HttpServletRequest request);
}
